package com.kingint.web.portal.base.controller;


import com.kingint.common.unitedresult.K;
import com.kingint.mbg.dto.RepairGoodReturn;
import com.kingint.web.portal.base.service.RepairGoodsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * @描述：维修物品相关表控制类
 * @作者: wxh
 * @日期: 2020-12-22
 */
@RestController
@RequestMapping("/RepairGoods")
@Api(value = "BasRepairGoodsController", description = "维修物品相关表")
@CrossOrigin
public class RepairGoodsController {

    @Autowired
    public RepairGoodsService basRepairGoodsService;

    @ApiOperation(value = "根据维修物品相关表名称分页获取维修物品相关表列表")
    @GetMapping("/listAll")
    public Object getList() {
        List<RepairGoodReturn> list = basRepairGoodsService.getAllRepairGoods();
        return K.ok().data(list);
    }
}